<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
	
	

	<h:panelGrid columns="1" cellpadding="5" id="panelLogin"
		style="width:40%; margin:20px auto;">
		<h:form styleClass="form" id="idForm">
		<p:messages  showDetail="true" autoUpdate="true"
		closable="true" />
		
		
			<p:panel header="Login">
							
				<h:panelGrid styleClass="centered" columns="2" cellpadding="2">
					<p:outputLabel value="Usuario: " />
					<p:inputText value="#{userManagerController.userName}" />

					<p:outputLabel value="Password: " />
					<p:password value="#{userManagerController.password}" />
				</h:panelGrid>
				<br />
				<h:panelGrid columns="2" cellpadding="10">
					<p:commandButton value="Ingresar" ajax="false"
						action="#{userManagerController.validateUser}" update="panelLogin" />
				</h:panelGrid>
			</p:panel>
		</h:form>
	</h:panelGrid>
</ui:composition>